import axios from '@/axios';

export default {
  getUserList () {
    return axios.get('/api/userManage/userList');
  },
  getUserRole (user_id) {
    return axios.get('/api/userManage/getRole?user_id='+user_id);
  },
  editUserRole (user_id,ids) {
    var params = {'user_id':user_id,'ids':ids};
    return axios.post('/api/userManage/editRole',params);
  },
  deleteUser (user_id) {
    var params = {'user_id': user_id};
    return axios.post('/api/userManage/deleteUser',params);
  },
  editUser ( params ) {
    return axios.post('/api/userManage/userEdit',params);
  },
  addUser ( params ) {
    return axios.post('/api/userManage/userAdd',params);
  },
}
